package com.example.demo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * @ Description：TODO
 * @ Author：wzj
 * @ Date：2018/12/20 21:14
 */
@Controller
@RequestMapping("/test")
public class TestController {
    @RequestMapping("/ss")
    public String ss(Model model){
        model.addAttribute("sv","svsv");
        return "ss";
    }
    @RequestMapping("/ss1")
    public ModelAndView ss1(Model model){
        ModelAndView modelAndView=new ModelAndView("index");
        return modelAndView;
    }
}
